package main

import (
	"fmt"
	"regexp"
)

func main() {
	buf := "abc azc a7c aac 888 a9c tac"

	//reg := regexp.MustCompile(`a.c`)
	//reg := regexp.MustCompile(`a[0-9]c`)
	reg := regexp.MustCompile(`a\dc`)
	if reg == nil {
		fmt.Println("err = ", reg)
		return
	}

	allString := reg.FindAllString(buf, -1)
	fmt.Println(allString)
}
